import request from '@/utils/request';
//获取课程列表
export function getCourseList(data) {
  return request({
    url: '/business/course/getCoursePage',
    method: 'post',
    data:data
  })
}
//新增课程
export function addCourse(data) {
  return request({
    url: '/business/course/addCourse',
    method: 'post',
    data:data
  })
}
//修改课程
export function updateCourse(data) {
  return request({
    url: '/business/course/editCourse',
    method: 'put',
    data:data
  })
}
//删除课程
export function deleteCourse(data) {
  return request({
    url: '/business/course/' + data,
    method: 'delete'
  })
}
